package com.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        try {
            ApplicationContext app = SpringApplication.run(Application.class, args);
            SpringUtil.setApplicationContext(app);
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}